package com.netease.ssm.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.util.Assert;

import com.netease.ssm.cons.CommonConstant;
import com.netease.ssm.meta.User;

public class BaseController {
	
	protected User getSessionPerson(HttpServletRequest request){
		return (User)request.getSession().getAttribute(CommonConstant.USER_CONTEXT);
		
		
	}
	
	protected void setSessionPerson(HttpServletRequest request,User user){
		request.getSession().setAttribute(CommonConstant.USER_CONTEXT, user);
	}
}
